<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改新闻</title>
<script src="../../../public/kindeditor/kindeditor.js"></script>
<script src="../../../public/kindeditor/lang/zh_CN.js"></script>
<script src="../../../public/kindeditor/php/upload_json.php"></script>
<script>
    KindEditor.ready(function(K){
        window.editor = K.create('.content');
    });
</script>
</head>

<style>
.xxx{ border-bottom:1px solid #666; width:100%;}
h2{ margin-left:20px;}
p{ margin-left:20px; margin-top:20px;}
.title{ width:300px;;}
.content{width:650px;height=300px;}
</style>
<body>
<div class="xxx">
 <h2>修改新闻</h2>
</div>
<form id="form1" name="form1" method="post" action="index.php?p=admin&c=manage&a=update">
  <p>新闻标题：<input type="text" name="title" class="title" value="<?php echo $data['title']; ?>" /></p>
  <p>新闻时间：<input type="text" name="date" class="date" value="<?php echo $data['date']; ?>" /></p>
  <p>新闻来源：<input type="text" name="source" class="source" value="<?php echo $data['source']; ?>" /></p>
  <p>本台记者：<input type="text" name="reporter" class="reporter" value="<?php echo $data['reporter']; ?>" /></p>
  <p>新闻内容：
  <textarea name="content" class="content" cols="45" rows="5" ><?php echo $data['content']; ?></textarea></p>
  <p>责任编辑：<input type="text" name="editor" class="editor" value="<?php echo $data['editor']; ?>" /></p>
  <p>
  <input type="reset" value="重置" class="button" />
  <input type="submit" value="保存" class="button" />
  </p>
  <input type="hidden" name="id" value="<?php echo $data['id']; ?>" />
</form>
</body>
</html>